# -*- coding: utf-8 -*-
from flask import Blueprint, render_template, g

route_index = Blueprint( 'index_page',__name__ )

@route_index.route("/")
def index():
    # 当前用户对象
    user_info=g.current_user
    context = {"user_info":user_info}#user_info:可以取nickname,和mobile
    return render_template( "index/index.html" ,**context)